import request from '@/utils/request'

//老师基本信息
export function getTeacherBaseInfo(gh) {
  return request({
    url: '/api/teacher/baseInfo',
    method: 'get',
    params: { gh }
  })
}
//最近一次评价满意率及排名
export function getSatisfiRateRanking(gh) {
  return request({
    url: '/api/teacher/eval/satisfi_rate_ranking',
    method: 'get',
    params: { gh }
  })
}
//学案评价满意人数统计
export function getXaStatis(gh){
  return request({
    url: '/api/teacher/eval/xa_statis',
    method: 'get',
    params: { gh }
  })
}
//最近一次评价等级分布
export function getSatisfiDistr(gh){
  return request({
    url: '/api/teacher/eval/satisfi_distr',
    method: 'get',
    params: { gh }
  })
}
//学年统计接口
export function getLastSixRate(gh){
  return request({
    url: '/api/teacher/eval/last_six_rate',
    method: 'get',
    params: { gh }
  })
}
//平均分------超越得分   ---考核偏离值---  平均值趋势预测
export function getTeachingQualityEvaluation(teacherCode){
  return request({
    url: '/api/teacher/teachingQualityEvaluation',
    method: 'get',
    params: { teacherCode }
  })
}

export function get_teacher_pic(gh){
  return request({
    url: '/api/teacher/get_pic',
    method: 'get',
    params: { gh }
  })
}

//根据条件筛选教师
export function getSwitchFilter(text,xd){
  return request({
    url: '/api/teacher/switch_filter',
    method: 'get',
    params: { text,xd }
  })
}
//教师默认查询
export function defaultTeacher() {
  return request({
    url: '/api/config/get/default_teacher',
    method: 'get',
    params: { }
  })
}
